package com.yimi.yinhepda.adapter.RecycleAdapter

import android.content.Context
import com.yimi.yinhepda.R
import com.pda.ym.base.CommonRecycleAdapter
import com.pda.ym.base.CommonViewHolder
import com.yimi.yinhepda.entity.bean.KuaYueTaskDetailEntity

/**
 * @author: lj
 * Date: 2020/3/9 14:28
 * Description:跨越差异报告列表适配器
 */
class KuaYueDifferReportAdapter(var context: Context?, dataList: MutableList<KuaYueTaskDetailEntity>?,
                                var commonClickListener: CommonViewHolder.onItemCommonClickListener?)
    : CommonRecycleAdapter<KuaYueTaskDetailEntity>(context, dataList, R.layout.item_kuayue_differ_report) {

    override fun bindData(holder: CommonViewHolder?, data: KuaYueTaskDetailEntity?, position: Int) {
        holder?.setCommonClickListener(commonClickListener)
        holder?.setText(R.id.tv_execptionWaybill, data?.outsideNo)
        holder?.setText(R.id.tv_lessGoods, data?.lessGoods.toString())
        holder?.setText(R.id.tv_moreGoods, data?.moreGoods.toString())
    }
}